<form id="app-form" class="layui-form layuimini-form">
    <div class="layui-form-item">
        <label class="layui-form-label">商户号mchid</label>
        <div class="layui-input-block">
            <input type="text" name="mchid" class="layui-input" lay-verify="" placeholder="请输入商户号" value="{:sysconfig('wxapp','mchid')}">
            <tip>填写商户mchid。</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">商户signkey</label>
        <div class="layui-input-block">
            <input type="text" name="signkey" class="layui-input" lay-verify="" placeholder="请输入signkey" value="{:sysconfig('wxapp','signkey')}">
            <tip>填写商户signkey。</tip>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商户证书序号serial_num</label>
        <div class="layui-input-block">
            <input type="text" name="serial_num" class="layui-input" lay-verify="" placeholder="请输入商户证书序号" value="{:sysconfig('wxapp','serial_num')}">
            <tip>商户证书序号。</tip>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">商户证书apiclient_cert</label>
        <div class="layui-input-block">
            <textarea name="apiclient_cert" class="layui-textarea" lay-verify="" placeholder="请输入商户证书apiclient_cert。">{$apiclient_cert}</textarea>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">商户证书apiclient_key</label>
        <div class="layui-input-block">
            <textarea name="apiclient_key" class="layui-textarea" lay-verify="" placeholder="请输入商户证书apiclient_key。">{$apiclient_key}</textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-block">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/update">更新平台证书</button>
        </div>
    </div>
    
    <div class="layui-form-item">
        <label class="layui-form-label">平台证书序号serial_no</label>
        <div class="layui-input-block">
            <input type="text" name="serial_no" class="layui-input layui-disabled" placeholder="请输入平台证书序号" value="{:sysconfig('wxapp','serial_no')}">
            <tip>平台证书序号。</tip>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">平台证书certificate</label>
        <div class="layui-input-block">
            <textarea name="certificate" class="layui-textarea layui-disabled"  placeholder="平台证书。">{$certificate}</textarea>
        </div>
    </div>

    <div class="hr-line"></div>
    <div class="layui-form-item text-center">
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/save" data-refresh="false">确认</button>
        <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
    </div>
</form>